package com.baox.agridata.synchronous.service.shanxi;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baox.agridata.synchronous.entity.quanguo.Jyzdds;
import com.baox.agridata.synchronous.entity.quanguo.Jyzsdwb;
import com.baox.agridata.synchronous.entity.shanxi.TCCABEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TCCABService {


    /**
     * 通过检疫证号查询动物B
     *
     * @param factoryCode
     * @return
     */
    TCCABEntity selectTCCABInfoByFactoryCode(String factoryCode);


    /**
     * 更新动物B状态
     *
     * @param Status
     * @param lastUpdate
     * @param mid
     * @return
     */
    Integer updateTCCABStatus(String Status, String lastUpdate, String mid);


    /**
     * 同步农业部动物B数据
     *
     * @param startTime   开始时间
     * @param endTime     结束时间
     * @param factoryCode 检疫证号
     * @return
     */
    List<Jyzsdwb> getLocalCCABList(String startTime, String endTime, String factoryCode);


    /**
     * 查询农业部JYZDDS这个表的上传数据从TCCAB表中查询
     *
     * @param createTime
     * @return
     */
    List<Jyzdds> selectJyzDDsFromTCCAB(String createTime);


}
